using System;

namespace ICP_MS.Plugin.Experiment;

public class MassRegion : IComparable
{
	public double Left { get; set; }

	public double Right { get; set; }

	public MassRegion(double left, double right)
	{
		Left = left;
		Right = right;
	}

	public int CompareTo(object obj)
	{
		MassRegion temp = obj as MassRegion;
		if (Left < temp.Left)
		{
			return -1;
		}
		if (Left > temp.Left)
		{
			return 1;
		}
		return 0;
	}
}
